package cn.z2huo.demo.jakarta.validation.annotation;

import cn.z2huo.demo.jakarta.validation.annotation.validator.InStringListConstraintValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * <p>
 *
 * @author z2huo
 */
@Documented
@Constraint(validatedBy = {InStringListConstraintValidator.class})
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
public @interface InStringList {

    /**
     * @return 取值
     */
    String[] values() default {};

    String message() default "{cn.z2huo.demo.jakarta.validation.annotation.InList.message}";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };

}
